﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RelationExpertSystem.Relation
{
    public class Mother : RelationBase
    {
        private static Mother _singleton = new Mother();
        public static Mother Instance
        {
            get { return _singleton; }
        }

        private Mother() { }

        public override bool IsRelated(Person a, Person b)
        {
            // b is a's mother IFF DEFINED
            return b == a.Mother;
        }

        public override IEnumerable<IRelation> GetDependencies()
        {
            return new HashSet<IRelation>();
        }
    }
}
